package com.example.demo.Exception;


import com.example.demo.enums.ErrCodeEnum;

/**
 * @author : 洪俊新
 * @date : 2021/1/21 10:13
 * @description:
 */
public class BackException extends Exception {

    private Integer code;

    public BackException(ErrCodeEnum errCodeEnum) {
        super(errCodeEnum.getMessage());
        this.code = errCodeEnum.getCode();
    }


    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}

